import request from '@/utils/request'

// 查询选矿车间生产运转情况记录列表
export function listSalework(query) {
  return request({
    url: '/app/salework/list',
    method: 'get',
    params: query
  })
}

// 查询选矿车间生产运转情况记录详细
export function getSalework(id) {
  return request({
    url: '/app/salework/' + id,
    method: 'get'
  })
}

// 新增选矿车间生产运转情况记录
export function addSalework(data) {
  return request({
    url: '/app/salework',
    method: 'post',
    data: data
  })
}

// 修改选矿车间生产运转情况记录
export function updateSalework(data) {
  return request({
    url: '/app/salework',
    method: 'put',
    data: data
  })
}

// 删除选矿车间生产运转情况记录
export function delSalework(id) {
  return request({
    url: '/app/salework/' + id,
    method: 'delete'
  })
}
